import React from 'react'
// 路由
// import {BrowserRouter,Route} from 'react-router-dom'
import 'antd/dist/antd.css';
import Home from "././pages/Home"
import Hot from "././pages/Hot"
import Shop from "././pages/Shop"
import School from "././pages/School"
import Shzp from "././pages/Shzp"
import Helep from "././pages/Helep"
import Zcpt from "././pages/Zcpt"
import Jb from "././pages/Jb"
import Fxzq from "././pages/FXzq"
import { BrowserRouter, NavLink, Route } from "react-router-dom"
// 入口文件
export default function APP() {
    return (
        <BrowserRouter>
            <div className="qh_sy">
                <img width="180px" src="//cdn.pinduoduo.com/upload/home/img/common/pdd_logo_v2.png" />
                <NavLink exact to="/"  activeClassName="myactive" >首页</NavLink>|
                <NavLink to="/Shop" activeClassName="myactive" >商家入驻</NavLink>|
                <NavLink to="/School" activeClassName="myactive">热点资讯</NavLink>|
                <NavLink to="/Shzp" activeClassName="myactive">社会招聘</NavLink>|
                <NavLink to="/Hot" activeClassName="myactive">校园招聘</NavLink>|
                <NavLink to="/Zcpt" activeClassName="myactive">招采平台</NavLink>|
                <NavLink to="/Helep" activeClassName="myactive">帮助中心</NavLink>|
                <NavLink to="/Jb" activeClassName="myactive">举报平台</NavLink>|
                <NavLink to="/Fxzq" activeClassName="myactive">分享赚钱</NavLink>
                <Route exact path="/" component={Home}></Route>
                <Route path="/hot" component={Hot}></Route>
                <Route exact path="/Shop" component={Shop}></Route>
                <Route path="/School" component={Shzp}></Route>
                    <Route path="/Shzp" component={School}></Route>
                    <Route path="/Zcpt" component={Zcpt}></Route>
                    <Route path="/Helep" component={Helep}></Route>
                    <Route path="/Jb" component={Jb}></Route>
                    <Route path="/Fxzq" component={Fxzq}></Route>
            </div>
    </BrowserRouter>
    )
}
